package lormi.meipin.controller.api;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import lormi.meipin.common.Result;
import lormi.meipin.controller.BaseController;

/**
 * 融云聊天
 * */
@RestController
@RequestMapping(value="v2/rongyun/",method=RequestMethod.POST,produces = "application/json; charset=utf-8")
public class RongYunController extends BaseController{

	/**
	 * 获取融云token
	 * @param userid 
	 * @param usertype
	 * */
	@RequestMapping("token")
	public String select(Integer userid,Integer usertype) throws Exception{
		return Result.success(rongyunService.getToken(userid, usertype));
	}
	
}
